class ReviewsController < ApplicationController
  #商品评论
  before_filter :find_item

  def index

  end

  def create
    render :text => "新建"
  end

  protected
  def find_item
    @item = Item.find_by_id(params[:item_id])
    if @item.blank?
      flash[:notice] = "未找到商品!"
      redirect_to items_path
    end
  end

end
